package com.hainatong.shiphelper.api;


public class HttpResult<T>
{
    private int status;

    private int total;

    private String msg;

    private T rows;

    //private Object summary;
    //private Object extra;


    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getTotal()
    {
        return total;
    }

    public void setTotal(int total)
    {
        this.total = total;
    }

    public String getMsg()
    {
        return msg;
    }

    public void setMsg(String msg)
    {
        this.msg = msg;
    }

    public T getRows()
    {
        return rows;
    }

    public void setRows(T rows)
    {
        this.rows = rows;
    }

    public boolean isOk()
    {
        if( this.status == 0 )
        {
            return  true;
        }
        else
        {
            return  false;
        }
    }

}
